<template>
	<div id="app">
		<van-tabbar route v-if='routerFalg'>
			<van-tabbar-item replace to="/" icon="home-o">首页</van-tabbar-item>
			<van-tabbar-item replace to="/about" icon="search">列表</van-tabbar-item>
			<van-tabbar-item replace to="/list" icon="home-o">购物车</van-tabbar-item>
			<van-tabbar-item replace to="/my" icon="setting-o">我的</van-tabbar-item>
		</van-tabbar>
		<router-view />
	</div>
</template>
<script>
	import {
		mapMutations,
		mapState
	} from 'vuex'

	export default {
		methods: {
			...mapMutations(['inuser'])
		},
		created() {
			this.inuser()
			console.log('app')
			console.log(this.$route)

		},
		computed: {
			...mapState(['routerFalg'])
		}
	}
</script>
<style>
	
</style>
